package hgx.spring.cloud.lession.productrepertory.vo;/**
 * Created by liujun on 2018/3/26.
 */

import java.util.ArrayList;
import java.util.List;

/**
 * @author Administrator
 * @create 2018-03-26 11:04
 */
public class ReponseProductListVo extends  ReponseBaseVo {
    private static final long serialVersionUID = 2629997122375843089L;

    private List<ProductVo> productVos;

    /**
     * 获取商品列表
     * @return
     */
    public List<ProductVo> getProductVos() {
        return productVos;
    }

    public void setProductVos(List<ProductVo> productVos) {
        this.productVos = productVos;
    }

    /**
     * 添加商品
     * @param productVo
     */
    public void addProductVo(ProductVo productVo){
        if(productVo  == null){
            return ;
        }

        if(productVos == null){
            productVos=new ArrayList<ProductVo>(1);
        }

        productVos.add(productVo);
    }
}
